package com.dai.bean.tasks;

import com.dai.bean.TaskType;
import org.json.JSONObject;

public class TaskMeiRiYunDong extends TaskBase{

    public static final TaskType taskType = TaskType.MeiRiYunDong;

    // 记录每一项的开始时间
    public long yuanDiTiao = 0; // 0表示还没有开始
    public long pingPangQiu = 0;
    public long tiZuQiu = 0;
    public long daLanQiu = 0;
    public long paoBu = 0;
    public long jianShenCao = 0;

    @Override
    public JSONObject toJsonObject() {
        JSONObject obj = new JSONObject();
        obj.put("yuanDiTiao",yuanDiTiao);
        obj.put("pingPangQiu",pingPangQiu);
        obj.put("tiZuQiu",tiZuQiu);
        obj.put("daLanQiu",daLanQiu);
        obj.put("paoBu",paoBu);
        obj.put("jianShenCao",jianShenCao);
        return obj;
    }

    @Override
    public void checkReset() {
        yuanDiTiao = 0;
        pingPangQiu = 0;
        tiZuQiu = 0;
        daLanQiu = 0;
        paoBu = 0;
        jianShenCao = 0;
    }

    @Override
    public String getTaskTypeName() {
        return taskType.getValue();
    }
}
